package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.Industry;
import org.jeecg.modules.platform.facade.IIndustryFacade;
import org.jeecg.modules.platform.service.IIndustryService;
import org.jeecg.modules.platform.vo.IndustryVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 行业
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class IndustryFacadeImpl extends IFacadeImpl<IndustryVo, Industry, IIndustryService>  implements IIndustryFacade<IndustryVo, Industry> {
        @Autowired
        private IIndustryService industryService;


         @Override
         public Industry po2Vo(IndustryVo vo) {
                Industry po = new Industry();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public IndustryVo vo2Po(Industry po) {
                IndustryVo vo = new IndustryVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
